﻿@model IEnumerable<Backend.JYD.Model.Cust.CustAsset>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>
            CustNo
        </th>
        <th>
            SourceId
        </th>
        <th>
            Deposit
        </th>
        <th>
            NationalDebt
        </th>
        <th>
            Rank
        </th>
        <th>
            TaskId
        </th>
        <th>
            TaskDetailId
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
        <td>
            @item.CustNo
        </td>
        <td>
            @item.SourceId
        </td>
        <td>
            @String.Format("{0:F}", item.Deposit)
        </td>
        <td>
            @String.Format("{0:F}", item.NationalDebt)
        </td>
        <td>
            @item.Rank
        </td>
        <td>
            @item.TaskId
        </td>
        <td>
            @item.TaskDetailId
        </td>
    </tr>
}

</table>

